home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Jan 91 / MacApp.Tech$ 1⁄25⁄91 / 2777-NewTemplateWindow??-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.7 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    1099873                         23-Jan-91        06:54PST
  2.  
  3. From:   KEN.DULOCK                      EDS, Ken Dulock,VCA
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. ------------------------------------------------------------------------------
  8.  
  9. Sub:    NewTemplateWindow??
  10.  
  11. As a new up and struggling MacApp user, I would appreciate any help on the
  12. following problem.  In my program I want to open a window which will display
  13. graphic objects which are loaded from disk and added procedurally to a
  14. superview.  I am using NewTemplateWindow to load my foundation 'view' template,
  15. finding my desired subview, then using it when I instantate different items,
  16. like icons and such.
  17.  
  18. While this is taking place, I want to display a modal dialog that is saying
  19. "Please wait..." while updating a visual graphic of the progress of the load,
  20. such as a percentage bar or an icon being filled in.  I am doing this also with
  21. NewTemplateWindow, but I'm passing nil as the parent document, since I don't
  22. want it tied to my "real" window.
  23.  
  24. I'm opening my modal first, then my actual document window.  As soon as I call
  25. the second (real document) NewTemplateWindow, I crash with an ID #28,
  26. stack/heap collision.  After reading the various manuals, it seems that my only
  27. choice is NewTemplateWindow or PoseModally, the second of which will not do me
  28. any good since I want my program to continue processing in the background, then
  29. send Update() calls at various times during the process.
  30.  
  31. Any ideas on what I'm doing to cause the ID #28?  Am I already heading down the
  32. wrong road.
  33.  
  34. Please reply directly, I'm not yet with the MacApp.Tech$ group (though I would
  35. like to be added, if the MacApp.Tech$ admin is reading this message).
  36.  
  37. Richard Harvey
  38. ALink: Ken.Dulock
  39.  
  40.